package postjnlv2_param.view;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;

import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.Border;
import javax.swing.border.TitledBorder;

public class Rapport_Panel_View extends JFrame{	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
		
	private Font fontTitle = new Font("Comic Sans MS", Font.BOLD, 12);
	public JPanel rapport_Panel;
	private JPanel center_Panel;
	public JPanel center_north_west,center_south_west;
	public Rapport_Detail_View rapport_Detail_View;
	
	
	public Rapport_Panel_View(){
		rapport_Detail_View=new Rapport_Detail_View();
	}
	
	public JPanel rapport_Panel_View(){		
		//Rapport traitement postJNLv2
		rapport_Panel= new JPanel();
		rapport_Panel.setPreferredSize(new Dimension(450,400));
		Border titledBorderRapport = BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.getHSBColor(93/360F, 0.57F, 0.60F)), "Rapport Traitement postJNLv2 :", TitledBorder.LEFT, TitledBorder.TOP, fontTitle, Color.getHSBColor(93/255F, 0.57F, 0.60F));
		rapport_Panel.setBorder(BorderFactory.createTitledBorder(titledBorderRapport));
		rapport_Panel.setLayout(new BorderLayout());
	
		
		//Panel Resultat
		center_Panel=new JPanel();
		center_Panel.setLayout(new BorderLayout());
		center_Panel.setPreferredSize(new Dimension(400,400));
		Border titledBorderBas = BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.gray), "Détail traitement :", TitledBorder.RIGHT, TitledBorder.TOP, fontTitle, Color.gray);
		center_Panel.setBorder(BorderFactory.createTitledBorder(titledBorderBas));
		center_Panel.setBackground(Color.white);	
        
        center_north_west=new JPanel();
        center_north_west.setBackground(Color.WHITE);
        center_north_west.setLayout(new BorderLayout());
              
        center_south_west=new JPanel();
        center_south_west.setBackground(Color.WHITE);
        center_south_west.setLayout(new BorderLayout());
					
		center_Panel.add(center_north_west,BorderLayout.NORTH);
		center_Panel.add(center_south_west,BorderLayout.SOUTH);
		rapport_Panel.add(center_Panel,BorderLayout.CENTER);		
		
		return rapport_Panel;
	}				
	
}
